#include "vector.h"

void test1()
{
	wyr::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	for (auto v : v1)
	{
		cout << v << " ";
	}
	cout << endl;

	for (size_t i = 0; i < v1.size(); i++)
	{
		v1[i]++;
	}

	for (auto v : v1)
	{
		cout << v << " ";
	}
	cout << endl;
}

void test2()
{
	wyr::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	v1.insert(v1.begin(), 10);
	v1.insert(v1.begin(), 10);
	v1.insert(v1.begin(), 10);
	v1.insert(v1.begin(), 10);
	v1.insert(v1.begin(), 10);
	for (auto v : v1)
	{
		cout << v << " ";
	}
	cout << endl;
}

void test3()
{
	wyr::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	v1.erase(v1.begin());
	for (auto v : v1)
	{
		cout << v << " ";
	}
	cout << endl;
}

void test4()
{
	wyr::vector<int> v1;
	v1.resize(10, 6);
	for (auto v : v1)
	{
		cout << v << " ";
	}
	cout << endl;
}

void test5()
{
	wyr::vector<int> v1;
	v1.resize(10, 6);
	wyr::vector<int> v2;
	v2 = v1;
	for (auto v : v2)
	{
		cout << v << " ";
	}
	cout << endl;
}

void test6()
{
	wyr::vector<string> v1;
	v1.push_back("11111");
	v1.push_back("22222");
	v1.push_back("33333");
	v1.push_back("44444");
	v1.push_back("55555");
	v1.push_back("44444");
	for (auto v : v1)
	{
		cout << v << " ";
	}
	cout << endl;
}
int main()
{
	test6();
	return 0;
}